package com.ruoyi.season.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.appuser.domain.vo.PrizeInfo;
import com.ruoyi.season.domain.PlaySeasonPrize;
import com.ruoyi.season.domain.vo.PrizeInfoVo;
import org.apache.ibatis.annotations.Param;

/**
 * 赛季奖品Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-14
 */
public interface PlaySeasonPrizeMapper extends BaseMapper<PlaySeasonPrize>
{
    /**
     * 查询赛季奖品
     *
     * @param id 赛季奖品主键
     * @return 赛季奖品
     */
    public PlaySeasonPrize selectPlaySeasonPrizeById(String id);

    /**
     * 查询赛季奖品列表
     *
     * @param playSeasonPrize 赛季奖品
     * @return 赛季奖品集合
     */
    public List<PlaySeasonPrize> selectPlaySeasonPrizeList(PlaySeasonPrize playSeasonPrize);

    /**
     * 新增赛季奖品
     *
     * @param playSeasonPrize 赛季奖品
     * @return 结果
     */
    public int insertPlaySeasonPrize(PlaySeasonPrize playSeasonPrize);

    /**
     * 修改赛季奖品
     *
     * @param playSeasonPrize 赛季奖品
     * @return 结果
     */
    public int updatePlaySeasonPrize(PlaySeasonPrize playSeasonPrize);

    /**
     * 删除赛季奖品
     *
     * @param id 赛季奖品主键
     * @return 结果
     */
    public int deletePlaySeasonPrizeById(String id);

    /**
     * 批量删除赛季奖品
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePlaySeasonPrizeByIds(String[] ids);

    List<PlaySeasonPrize> selectPlayCurrentPrize(@Param("id") String id,@Param("playSeasonId") String playSeasonId);

    List<PrizeInfo> selectPrizeInfo(@Param("loginUserId") String loginUserId,
                                    @Param("playSeasonId") String playSeasonId,
                                    @Param("playSeasonRecordId")String playSeasonRecordId);

    List<PrizeInfoVo> selectPrizeInfoById(@Param("page") IPage<PrizeInfoVo> page, @Param(
            "playSeasonRecordId") String playSeasonRecordId
            ,@Param("playSeasonId") String playSeasonId);

    List<PrizeInfoVo> selectNormalUserPrizeInfo(IPage<PrizeInfoVo> page,@Param("playSeasonId") String playSeasonId);

    List<PlaySeasonPrize> selectNormalUserCurrentPrize(String playSeasonId);

}
